using Avalonia;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Markup.Xaml;
using static System.Net.Mime.MediaTypeNames;

namespace SageKing.Desktop;

public partial class LeftMenuItemParentView : UserControl
{
    public int level { get; set; } = 0;
    private readonly SukiTheme _theme = SukiTheme.GetInstance();

    public LeftMenuItemParentView()
    {
        InitializeComponent();
    }

    public LeftMenuItemParentView(int level = 0) : this()
    {
        this.level = level;
        this.Margin = new Thickness(level * 20, 0, 0, 0);

    }

    public StackPanel GetStackPanel()
    {
        return this.SPOne;
    }
    public void Expanded(bool isExpand = true)
    {
        this.Exp.IsExpanded = isExpand;
    }
}